package book;

public class BookList {
    private Book[] bookList = new Book[6];
    private int sizeUsed;
    public BookList() {
        bookList[0] = new Book("c语言","鹏哥","学习",28);
        bookList[1] = new Book("java","博哥","学习",26);
        bookList[2] = new Book("python","张三","学习",24);
        this.sizeUsed = 3;
    }

    public Book[] getBookList() {
        return bookList;
    }

    public Book getBook(int pos) {
        return bookList[pos];
    }
    public void setBookList(int pos, Book book) {
        bookList[pos] = book;
    }

    public int getSizeUsed() {
        return sizeUsed;
    }

    public void setSizeUsed(int sizeUsed) {
        this.sizeUsed = sizeUsed;
    }
}
